package com.kingdee.eas.custom.hr.attendance.client;

import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.eas.basedata.org.AdminOrgUnitInfo;
import com.kingdee.eas.basedata.org.PositionInfo;
import com.kingdee.eas.basedata.person.PersonInfo;
import com.kingdee.eas.custom.hr.attendance.OvertimeManagement36EntryInfo;
import com.kingdee.eas.hr.base.client.HRBillEditUIBiz;

public class OvertimeManagement36EditUIBiz extends HRBillEditUIBiz {

	@Override
	protected IObjectValue createNewDetailData(PersonInfo p) {
		OvertimeManagement36EntryInfo info = new OvertimeManagement36EntryInfo();
		info.setPerson(p);
		info.setOldPosition((PositionInfo) p.get("personselectposition"));
		info.setOldAdminOrg((AdminOrgUnitInfo) p.get("primaryadminorg"));
		info.setSumUnit("Сʱ");
		return info;
	}

	@Override
	protected boolean isAddPersonByF7() {
		return true;
	}
}
